package cn.com.chengmandian.erp.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * ERP系统-库存模块-采购申请
 * </p>
 *
 * @author AutoGenerator
 */
@Getter
@Setter
@TableName("erp_stock_purchase_apply")
@ApiModel(value = "ErpStockPurchaseApply对象", description = "ERP系统-库存模块-采购申请")
public class ErpStockPurchaseApply implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("申请单编号PA-雪花")
    private String applyNo;

    @ApiModelProperty("关联采购合同ID")
    private Integer purchaseContractId;

    @ApiModelProperty("关联业务合同ID")
    private Integer businessContractId;

    @ApiModelProperty("采购部门ID")
    private Integer deptId;

    @ApiModelProperty("供应商ID")
    private Integer supplierId;

    @ApiModelProperty("供应商名称")
    private String supplierName;

    @ApiModelProperty("收款账号")
    private String supplierPayBankAccount;

    @ApiModelProperty("收款开户行")
    private String supplierPayBankName;

    @ApiModelProperty("货品类别ID")
    private Integer categoryId;

    @ApiModelProperty("付款方式 1-承兑 2-转账")
    private Integer payType;

    @ApiModelProperty("付款事由")
    private String payContent;

    @ApiModelProperty("付款金额")
    private BigDecimal payMoney;

    @ApiModelProperty("付款申请单附件")
    private String payFile;

    @ApiModelProperty("其它描述附件（多个）")
    private String detailFiles;

    @ApiModelProperty("采购总数")
    private Integer amount;

    @ApiModelProperty("已采购总数")
    private Integer inAmount;

    @ApiModelProperty("品类总数")
    private Integer itemAmount;

    @ApiModelProperty("品类完成数")
    private Integer itemInAmount;

    @ApiModelProperty("状态 1-草稿 2-审批中 3-采购中 4-采购完成 5-审核失败 6-废弃")
    private Integer status;

    @ApiModelProperty("状态说明")
    private String message;

    @ApiModelProperty("审批流实例ID")
    private Integer oaInstanceId;

    @ApiModelProperty("审批完成时间")
    private Date authTime;

    @ApiModelProperty("创建人ID")
    private Integer createUser;

    @ApiModelProperty("创建人姓名")
    private String createName;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("修改时间")
    private Date modifyTime;

}
